<?php

abstract class AbsRouteSettings {
	
	abstract public static function mapping();

	public static
		$def_format = 'html',
		$def_action = 'index',
		$def_controller = 'index',
		$rules = array(
			'index' => array(
				'rule' => ''
			),
			'blog_list' => array(
				'rule' => array('blogs:format.*', ':format' => '(?:\.(html|ajax|xml|))?'),
				'controller' => 'blog',
				'action' => 'list',
				'build' => 'blogs:format'
			),
			'url' => array(
				'rule' => array(':controller:action:format.*', ':controller' => '([\w\d]+)', ':action' => '(?:\/([\w\d]+))?', ':format' => '(?:\.([\w\d]+))?'),
				'build' => ':controller/:action:format'
			)
		);
}

?>